package com.example.starter;

import com.infra.common.resp.Response;
import com.infra.micro.quartz.api.QuartzJobApi;
import com.infra.micro.quartz.model.vo.QuartzJobVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/api/id/demo")
@Api(tags = {"DEMO服务"})
public class DemoController {
    @Resource
    private QuartzJobApi quartzJobApi;
    @GetMapping("/call")
    @ApiOperation(value = "测试调用", notes = "测试调用", produces = "application/json")
    public Response<QuartzJobVO> callDemo() {
         return quartzJobApi.queryById(43L);
    }
}
